const koa = require("koa");
const bodyParser = require("koa-bodyparser");
/* const cors = require("koa-cors"); */
const router = require("./routes")
const app = new koa();
app.use(bodyParser());
/* app.use(cors()); */
app.use(router.routes()).use(router.allowedMethods());

app.listen(3000, () => {
    console.log('成功')
})
